package com.example.library.controller;

import com.example.library.bean.response.Response;
import com.example.library.service.BookTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/bookType")
public class BookTypeAPI {

    @Autowired
    private BookTypeService bookTypeService;

    @GetMapping("/getAll")
    public Response getAll() {
        return bookTypeService.getAllBookType();
    }

}
